package com.utils2;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author LWY
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CityData {
    int confirmed;
    int recovered;
    int deaths;
    int total;

    public CityData(int confirmed, int recovered, int deaths) {
        this.confirmed = confirmed;
        this.recovered = recovered;
        this.deaths = deaths;
    }

    public int getTotal() {
        return this.confirmed+this.recovered+this.deaths;
    }
}
